package com.bawei.lib_storage


import com.tencent.mmkv.MMKV

/**
 *author：yjk
 *description:
 *date：2025/6/9
*/
object AppMMKV: MMKVOwner {
    //  MMKV实例 auth文件中
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID("app")

    //accessid
    var accessid by MMKVProperty("")
    //token
    var token by MMKVProperty("")
    //用户Id
    var userId by MMKVProperty(1)
    //username
    var username by MMKVProperty("")
    //password
    var password by MMKVProperty("")
    //用户隐私协议
    var splashAgreement by MMKVProperty(false)

    //app引导页
    var needGuide by MMKVProperty(true)

    //活动搜索历史记录
    var activitySearchHistory by MMKVProperty("")

    //路线搜索记录
    var routeSearchHistory by MMKVProperty("")

    //记录启动时间
    var lastLaunchTime by MMKVProperty(0L)
    //搜索记录
    var searchHistory by MMKVProperty("")

}